/**
 * projectName: waste_recovery-version_management
 * fileName: dasd.java
 * packageName: PACKAGE_NAME
 * date: 2021-01-23 3:42 下午
 * copyright(c) 2017-2020 xxx公司
 */

import com.dadie.Domain.ShopDomain;
import com.dadie.Dto.ShopDto;
import com.fasterxml.jackson.annotation.JsonAlias;
import org.springframework.beans.BeanUtils;

/**
 * @version: V1.0
 * @author: light
 * @className: dasd
 * @packageName: PACKAGE_NAME
 * @description:
 * @data: 2021-01-23 3:42 下午
 **/
public class dasd {

    public static Object copy(Object t,Object s){
        Class<?> aClass = s.getClass();
        try {
            Object o = aClass.newInstance();
            BeanUtils.copyProperties(t,o);
            return o;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

    public static void main(String[] args) {
        String s = "{productId=1352902919598501889, productName=测试商品6, productTotal=10, productDescritpition=测试商品描述, productInventory=80, productStatus=1}";

    }
}
